﻿using LimaLims.Core.Entity.Basic;
using LimaLims.Core.Entity.System;
using LimaLims.Core.Enum;
using Microsoft.EntityFrameworkCore;
using System.ComponentModel.DataAnnotations;

namespace LimaLims.Core.Entity.TestCenter
{
    /// <summary>
    /// 不良品原因记录
    /// </summary>
    [Comment("不良品原因记录")]
    public class RejectItem : DEntityTenant
    {
        /// <summary>
        /// 试验任务ID
        /// </summary>
        [Comment("不良品处理ID")]
        public long RejectDealId { get; set; }

        public RejectDeal RejectDeal { get; set; }

        /// <summary>
        /// 不良品原因
        /// </summary>
        [Comment("不良品原因")]
        public string Reason { get; set; }

        /// <summary>
        /// 不良描述
        /// </summary>
        [Comment("不良描述"), MaxLength(100)]
        public string Remark { get; set; }
    }
}
